Class FakeClientLevel

java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.Level>
net.minecraft.world.level.Level
net.minecraft.client.multiplayer.ClientLevel
jeresources.util.FakeClientLevel
All Implemented Interfaces:
AutoCloseable, net.minecraft.world.level.biome.BiomeManager.NoiseBiomeSource, net.minecraft.world.level.BlockAndTintGetter, net.minecraft.world.level.BlockGetter, net.minecraft.world.level.CollisionGetter, net.minecraft.world.level.CommonLevelAccessor, net.minecraft.world.level.EntityGetter, net.minecraft.world.level.LevelAccessor, net.minecraft.world.level.LevelHeightAccessor, net.minecraft.world.level.LevelReader, net.minecraft.world.level.LevelSimulatedReader, net.minecraft.world.level.LevelSimulatedRW, net.minecraft.world.level.LevelTimeAccess, net.minecraft.world.level.LevelWriter, net.minecraftforge.common.capabilities.ICapabilityProvider, net.minecraftforge.common.capabilities.ICapabilityProviderImpl<net.minecraft.world.level.Level>, net.minecraftforge.common.extensions.IForgeBlockGetter, net.minecraftforge.common.extensions.IForgeLevel

public class FakeClientLevel extends net.minecraft.client.multiplayer.ClientLevel
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.client.multiplayer.ClientLevel

    net.minecraft.client.multiplayer.ClientLevel.ClientLevelData

    Nested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProvider

    net.minecraftforge.common.capabilities.CapabilityProvider.AsField<B extends net.minecraftforge.common.capabilities.ICapabilityProviderImpl<B>>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.client.multiplayer.ClientLevel.ClientLevelData
     

    Fields inherited from class net.minecraft.world.level.Level

    addend, blockEntityTickers, captureBlockSnapshots, capturedBlockSnapshots, END, isClientSide, levelData, LONG_PARTICLE_CLIP_RANGE, MAX_BRIGHTNESS, MAX_ENTITY_SPAWN_Y, MAX_LEVEL_SIZE, MIN_ENTITY_SPAWN_Y, NETHER, oRainLevel, oThunderLevel, OVERWORLD, rainLevel, random, randValue, RESOURCE_KEY_CODEC, restoringBlockSnapshots, SHORT_PARTICLE_CLIP_RANGE, thunderLevel, TICKS_PER_DAY
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    destroyBlockProgress(int breakerId, net.minecraft.core.BlockPos pos, int progress)
     
    <T> net.minecraftforge.common.util.LazyOptional<T>
    getCapability(net.minecraftforge.common.capabilities.Capability<T> capability, net.minecraft.core.Direction facing)
     
    net.minecraft.client.multiplayer.ClientChunkCache
     
    net.minecraft.world.entity.Entity
    getEntity(int p_73045_1_)
     
    int
     
    net.minecraft.world.level.saveddata.maps.MapItemSavedData
    getMapData(String mapName)
     
    net.minecraft.world.item.crafting.RecipeManager
     
    net.minecraft.world.scores.Scoreboard
     
    boolean
    hasChunk(int p_217354_1_, int p_217354_2_)
     
    void
    levelEvent(net.minecraft.world.entity.player.Player player, int type, net.minecraft.core.BlockPos pos, int data)
     
    void
    playSound(net.minecraft.world.entity.player.Player player, double x, double y, double z, net.minecraft.sounds.SoundEvent soundIn, net.minecraft.sounds.SoundSource source, float volume, float pitch)
     
    void
    playSound(net.minecraft.world.entity.player.Player p_184133_1_, net.minecraft.core.BlockPos p_184133_2_, net.minecraft.sounds.SoundEvent p_184133_3_, net.minecraft.sounds.SoundSource source, float p_184133_5_, float p_184133_6_)
     
    void
    sendBlockUpdated(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState oldState, net.minecraft.world.level.block.state.BlockState newState, int flags)
     
    void
    setMapData(String p_171670_, net.minecraft.world.level.saveddata.maps.MapItemSavedData p_171671_)
     

    Methods inherited from class net.minecraft.client.multiplayer.ClientLevel

    addAlwaysVisibleParticle, addAlwaysVisibleParticle, addDestroyBlockEffect, addMapData, addParticle, addParticle, addPlayer, animateTick, calculateBlockTint, clearTintCaches, createFireworks, disconnect, doAnimateTick, effects, entitiesForRendering, fillReportDetails, gameEvent, gatherChunkSourceStats, getAllMapData, getBlockTicks, getBlockTint, getCloudColor, getEntities, getEntityCount, getFluidTicks, getLevelData, getServerSimulationDistance, getShade, getSharedSpawnAngle, getSharedSpawnPos, getSkyColor, getSkyDarken, getSkyFlashTime, getStarBrightness, getUncachedNoiseBiome, globalLevelEvent, isLightUpdateQueueEmpty, onChunkLoaded, players, playLocalSound, playLocalSound, playSound, pollLightUpdates, putNonPlayerEntity, queueLightUpdate, registryAccess, removeEntity, sendPacketToServer, setBlocksDirty, setDayTime, setDefaultSpawnPos, setGameTime, setKnownState, setLightReady, setScoreboard, setSectionDirtyWithNeighbors, setServerSimulationDistance, setSkyFlashTime, shouldTickDeath, tick, tickEntities, tickNonPassenger, toString, unload

    Methods inherited from class net.minecraft.world.level.Level

    addBlockEntityTicker, addFreshBlockEntities, blockEntityChanged, blockEvent, broadcastEntityEvent, close, destroyBlock, dimension, dimensionType, dimensionTypeRegistration, explode, explode, explode, getBestNeighborSignal, getBiomeManager, getBlockEntity, getBlockRandomPos, getBlockState, getChunk, getChunk, getChunkAt, getChunkForCollisions, getCurrentDifficultyAt, getDayTime, getDirectSignalTo, getEntities, getEntities, getFluidState, getGameRules, getGameTime, getHeight, getLightEngine, getMaxEntityRadius, getProfiler, getProfilerSupplier, getRainLevel, getRandom, getSeaLevel, getServer, getSignal, getSkyDarken, getSunAngle, getThunderLevel, getWorldBorder, guardEntityTick, hasNeighborSignal, hasSignal, increaseMaxEntityRadius, isClientSide, isDay, isDebug, isFluidAtPosition, isHumidAt, isInSpawnableBounds, isInWorldBounds, isLoaded, isNight, isRaining, isRainingAt, isStateAtPosition, isThundering, loadedAndEntityCanStandOn, loadedAndEntityCanStandOnFace, markAndNotifyBlock, mayInteract, neighborChanged, nextSubTickCount, noSave, onBlockStateChange, postGameEventInRadius, prepareWeather, removeBlock, removeBlockEntity, setBlock, setBlock, setBlockAndUpdate, setBlockEntity, setRainLevel, setSpawnSettings, setThunderLevel, shouldTickBlocksAt, tickBlockEntities, updateNeighborsAt, updateNeighborsAtExceptFromFacing, updateNeighbourForOutputSignal, updateSkyBrightness

    Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider

    areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCaps

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface net.minecraft.world.level.BlockAndTintGetter

    canSeeSky, getBrightness, getRawBrightness

    Methods inherited from interface net.minecraft.world.level.BlockGetter

    clip, clipWithInteractionOverride, getBlockFloorHeight, getBlockFloorHeight, getBlockStates, getLightEmission, getMaxLightLevel, isBlockInLine

    Methods inherited from interface net.minecraft.world.level.CollisionGetter

    collidesWithSuffocatingBlock, findFreePosition, getBlockCollisions, getCollisions, getEntityCollisions, isUnobstructed, isUnobstructed, isUnobstructed, noCollision, noCollision, noCollision

    Methods inherited from interface net.minecraft.world.level.CommonLevelAccessor

    getBlockEntity, getEntityCollisions, getHeightmapPos, isUnobstructed

    Methods inherited from interface net.minecraft.world.level.EntityGetter

    getEntities, getEntitiesOfClass, getEntitiesOfClass, getNearbyEntities, getNearbyPlayers, getNearestEntity, getNearestEntity, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getPlayerByUUID, hasNearbyAlivePlayer

    Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider

    getCapability

    Methods inherited from interface net.minecraftforge.common.extensions.IForgeBlockGetter

    getExistingBlockEntity

    Methods inherited from interface net.minecraft.world.level.LevelAccessor

    blockUpdated, dayTime, gameEvent, gameEvent, gameEvent, getDifficulty, levelEvent, scheduleTick, scheduleTick, scheduleTick, scheduleTick

    Methods inherited from interface net.minecraft.world.level.LevelHeightAccessor

    getMaxBuildHeight, getMaxSection, getMinSection, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isOutsideBuildHeight, isOutsideBuildHeight

    Methods inherited from interface net.minecraft.world.level.LevelReader

    canSeeSkyFromBelowWater, containsAnyLiquid, getBiome, getBlockStatesIfLoaded, getBrightness, getChunk, getChunk, getDirectSignal, getHeight, getMaxLocalRawBrightness, getMaxLocalRawBrightness, getMinBuildHeight, getNoiseBiome, hasChunkAt, hasChunkAt, hasChunksAt, hasChunksAt, hasChunksAt, isAreaLoaded, isEmptyBlock, isWaterAt

    Methods inherited from interface net.minecraft.world.level.LevelTimeAccess

    getMoonBrightness, getMoonPhase, getTimeOfDay

    Methods inherited from interface net.minecraft.world.level.LevelWriter

    addFreshEntity, destroyBlock, destroyBlock
  • Field Details

    • clientLevelData

      public static final net.minecraft.client.multiplayer.ClientLevel.ClientLevelData clientLevelData
  • Constructor Details

    • FakeClientLevel

      public FakeClientLevel()
  • Method Details

    • getCapability

      @Nullable public <T> net.minecraftforge.common.util.LazyOptional<T> getCapability(net.minecraftforge.common.capabilities.Capability<T> capability, @Nullable net.minecraft.core.Direction facing)
      Specified by:
      getCapability in interface net.minecraftforge.common.capabilities.ICapabilityProvider
      Overrides:
      getCapability in class net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.Level>
    • sendBlockUpdated

      public void sendBlockUpdated(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState oldState, net.minecraft.world.level.block.state.BlockState newState, int flags)
      Overrides:
      sendBlockUpdated in class net.minecraft.client.multiplayer.ClientLevel
    • playSound

      public void playSound(@Nullable net.minecraft.world.entity.player.Player player, double x, double y, double z, net.minecraft.sounds.SoundEvent soundIn, net.minecraft.sounds.SoundSource source, float volume, float pitch)
      Overrides:
      playSound in class net.minecraft.client.multiplayer.ClientLevel
    • playSound

      public void playSound(@Nullable net.minecraft.world.entity.player.Player p_184133_1_, net.minecraft.core.BlockPos p_184133_2_, net.minecraft.sounds.SoundEvent p_184133_3_, net.minecraft.sounds.SoundSource source, float p_184133_5_, float p_184133_6_)
      Specified by:
      playSound in interface net.minecraft.world.level.LevelAccessor
      Overrides:
      playSound in class net.minecraft.world.level.Level
    • getEntity

      @Nullable public net.minecraft.world.entity.Entity getEntity(int p_73045_1_)
      Overrides:
      getEntity in class net.minecraft.client.multiplayer.ClientLevel
    • getChunkSource

      public net.minecraft.client.multiplayer.ClientChunkCache getChunkSource()
      Specified by:
      getChunkSource in interface net.minecraft.world.level.LevelAccessor
      Overrides:
      getChunkSource in class net.minecraft.client.multiplayer.ClientLevel
    • getMapData

      @Nullable public net.minecraft.world.level.saveddata.maps.MapItemSavedData getMapData(String mapName)
      Overrides:
      getMapData in class net.minecraft.client.multiplayer.ClientLevel
    • setMapData

      public void setMapData(String p_171670_, net.minecraft.world.level.saveddata.maps.MapItemSavedData p_171671_)
      Overrides:
      setMapData in class net.minecraft.client.multiplayer.ClientLevel
    • getFreeMapId

      public int getFreeMapId()
      Overrides:
      getFreeMapId in class net.minecraft.client.multiplayer.ClientLevel
    • destroyBlockProgress

      public void destroyBlockProgress(int breakerId, net.minecraft.core.BlockPos pos, int progress)
      Overrides:
      destroyBlockProgress in class net.minecraft.client.multiplayer.ClientLevel
    • getScoreboard

      public net.minecraft.world.scores.Scoreboard getScoreboard()
      Overrides:
      getScoreboard in class net.minecraft.client.multiplayer.ClientLevel
    • getRecipeManager

      public net.minecraft.world.item.crafting.RecipeManager getRecipeManager()
      Overrides:
      getRecipeManager in class net.minecraft.client.multiplayer.ClientLevel
    • hasChunk

      public boolean hasChunk(int p_217354_1_, int p_217354_2_)
      Specified by:
      hasChunk in interface net.minecraft.world.level.LevelAccessor
      Specified by:
      hasChunk in interface net.minecraft.world.level.LevelReader
      Overrides:
      hasChunk in class net.minecraft.client.multiplayer.ClientLevel
    • levelEvent

      public void levelEvent(@Nullable net.minecraft.world.entity.player.Player player, int type, net.minecraft.core.BlockPos pos, int data)
      Specified by:
      levelEvent in interface net.minecraft.world.level.LevelAccessor
      Overrides:
      levelEvent in class net.minecraft.client.multiplayer.ClientLevel